import java.util.Scanner;

/**
 * Created by forcht on 2018/4/25.
 */
public class Main {

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNextLine()){
            String s=scanner.nextLine();
            int n=0;
            int t=1;
            for(int i=0;i<s.length();i++){
                char c=s.charAt(i);
                if(c>='0'&&c<='9'){
                    n++;
                    System.out.print(c);
                    if (n==6&&t==1){
                        System.out.print(" ");
                        n=0;
                        t=2;
                    }else if(n==8&&t==2){
                        System.out.print(" ");
                        n=0;
                    }
                }
            }
            System.out.println();
        }
    }
}
